<?php
if (!defined('__FUNCTIONS_PHP__')) {
define('__FUNCTIONS_PHP__', ' ');

include 'config.php';
include 'phpbb.includes.'.$phpEx;

/**
 * Defined Functions:
 *	- connectDataBase()
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 *	- 
 */

/**
 * void connectDataBase()
 * makes the connection with the database using the system configuration.
 */
function connectDataBase() {
	global	$db;
	global	$dbhost;
	global	$dbuser;
	global	$dbpasswd;
	global	$dbname;
	global	$dbport;
	global	$sql_db;

	if (!$db) {
		$db = new $sql_db();
		$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, false);
	}

	// We do not need this any longer, unset for safety purposes
	unset($dbpasswd);
}

} // __FUNCTIONS_PHP__ //
?>